package com.app.biz.service.impl;

import java.util.Date;
import java.util.List;

import cn.hutool.core.util.IdUtil;
import com.app.biz.domain.BizIndustrialEconomy;
import com.app.biz.mapper.BizIndustrialEconomyMapper;
import com.app.biz.service.IBizIndustrialEconomyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 工业经济运行分析Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-09
 */
@Service
public class BizIndustrialEconomyServiceImpl implements IBizIndustrialEconomyService
{
    @Autowired
    private BizIndustrialEconomyMapper bizIndustrialEconomyMapper;

    /**
     * 查询工业经济运行分析
     * 
     * @param baseId 工业经济运行分析主键
     * @return 工业经济运行分析
     */
    @Override
    public BizIndustrialEconomy selectBizIndustrialEconomyByBaseId(String baseId)
    {
        return bizIndustrialEconomyMapper.selectBizIndustrialEconomyByBaseId(baseId);
    }

    /**
     * 查询工业经济运行分析列表
     * 
     * @param bizIndustrialEconomy 工业经济运行分析
     * @return 工业经济运行分析
     */
    @Override
    public List<BizIndustrialEconomy> selectBizIndustrialEconomyList(BizIndustrialEconomy bizIndustrialEconomy)
    {
        return bizIndustrialEconomyMapper.selectBizIndustrialEconomyList(bizIndustrialEconomy);
    }

    /**
     * 新增工业经济运行分析
     * 
     * @param bizIndustrialEconomy 工业经济运行分析
     * @return 结果
     */
    @Override
    public int insertBizIndustrialEconomy(BizIndustrialEconomy bizIndustrialEconomy)
    {
        bizIndustrialEconomy.setBaseId(IdUtil.simpleUUID());
        bizIndustrialEconomy.setBaseCreateTime(new Date());
        return bizIndustrialEconomyMapper.insertBizIndustrialEconomy(bizIndustrialEconomy);
    }

    /**
     * 修改工业经济运行分析
     * 
     * @param bizIndustrialEconomy 工业经济运行分析
     * @return 结果
     */
    @Override
    public int updateBizIndustrialEconomy(BizIndustrialEconomy bizIndustrialEconomy)
    {
        return bizIndustrialEconomyMapper.updateBizIndustrialEconomy(bizIndustrialEconomy);
    }

    /**
     * 批量删除工业经济运行分析
     * 
     * @param baseIds 需要删除的工业经济运行分析主键
     * @return 结果
     */
    @Override
    public int deleteBizIndustrialEconomyByBaseIds(String[] baseIds)
    {
        return bizIndustrialEconomyMapper.deleteBizIndustrialEconomyByBaseIds(baseIds);
    }

    /**
     * 删除工业经济运行分析信息
     * 
     * @param baseId 工业经济运行分析主键
     * @return 结果
     */
    @Override
    public int deleteBizIndustrialEconomyByBaseId(String baseId)
    {
        return bizIndustrialEconomyMapper.deleteBizIndustrialEconomyByBaseId(baseId);
    }
}
